package com.example.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("exam_question")
public class ExamQuestion {
    @TableId
    private Integer id;
    private Integer questionId;
    private Integer examCategoryId;

    public void initExamQuestion(ExamQuestion examQuestion){
        this.questionId = examQuestion.getQuestionId();
        this.examCategoryId = examQuestion.getExamCategoryId();
    }
}
